Latest Questions

What is your suggestion for defining this VOIP web-service?

What is your suggestion about defining routes for such a web-service? Input: called number call date Output: caller number call datetime call duration

How to make multiple (more than 2) dependent Dropdowns in python

I have this case. There are 3 dropdown lists A,B,C. List A is independent. List B depends on value select in List A. List C depends on value selected in List B.

Finding the arguments of a cog/command in discord.py

I want to find the arguments of a cog/command to put it in the help command. for cog in client.cogs: if cog.lower() == input[0].lower():

Oracle Apex pretty URL

i need help for a problem. Before someone complain. I have post the same question in another forum but i didn't get any useful help there. https://community.ora

Cannot import functions in from one directory's subfolder to other pyhton files in same parent directories sub folders. How do I use init.py files

parent_folder / subfolder1 / subsubfolder1/ a.py b.py subsubfolder2/ c.py d.py e.py subfolder2 / subsubfolder2/ f.py g.py subfolder3 / h.py i.py g.py I want to

Laravel mews/purifier - How to escape special charcters?

I am using a laravel html purifier package for purifying my rich text from any xss before storing in database. But my rich text allows for Wiris symbols which u

IIS Web.config Rewrite rules - Redirect rules with - or + chars

https://someserver.com/path01/2011/abc+and+def/88722 https://someserver.com/path01/2011/abc-and-def/88722 I have several URLs that I need to create a redirect

Decision tree regression code, when run shows only 'random_state = 0' and nothing else

I have taken a house price dataset. I have run the following code: import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns

Keep libraries in memory even when all browsers are closed

I have a shiny app on RStudio's free shiny server that uses a fair number of libraries which results in a slow calculation time. The time for the UI to load is

How to create merge conflict between up-to-date - but differing - branches?

I want to restore old piece of code into the current code. Old piece of code is at an old commit that is a far parent of the current commit. Therefore there is

In react class based component this.setsate is used but state is not defined in constructor if I have to convert this in functional based then how

class Dashboard extends Component { constructor(props) { super(props) this.state = { assetList: [], assetList1: []; } } componentD

Mysql: can't start mysqld "mysqld.service: control process exited, code=exited status=1"

I have installed a third party framework fate, and mysql has been installed inside this framework, at the following path: /data/projects/fate/common/mysql/mysql

Dynamic heap implementation with insert O(log n)

I'm trying to implement a Min Heap in Java, but between studying the complexity and the actual implementation, I realized that it is not clear to me how O (log

How can I generate a 2D matrix of natural numbers wth zero in ascending order in shell script or another programming language?

I need to generate matrices of natural numbers in ascending order with zero (0), but they are very large ones and it will be hard to write them by hand. What I

LateInitializationError: Field '_instance@141084504' has not been initialized

When using getX and Flutter I get following error: LateInitializationError: Field '_instance@141084504' has not been initialized This is the code: import 'dart:

Scikit-learn pipeline: Non-finite test scores error / Inconsistent number of samples

I have a dataframe with two columns of texts and only the POS tags (of the same texts), which I want to use for language classification. I am trying to use both

Argument type 'String?' cannot be assigned to parameter type 'String', Triggering Dart's Null Safety either way

In this current snippet I have declared notification to be nullable but get an null safe error for the if loop's notification.body and notification.title. Here'

How to deploy Spring boot and React application together on GCP App Engine?

I don't have any experience in deployment and trying to deploy Frontend and backend together. I am able to successfully deploy the spring boot application. I fo

PyQt 6: Are there any classes with signals that emit when the device connects/disconnects to/from the internet?

I'm adding a download function to an application that I'm creating. When the user's device's internet connection is lost during a download, I want the download

want the app to save state separately according to each user in react native

I have a app that conducts a test and when the currently logged in user passes the test, the app shows a modal telling him that he has passed the test. I want t

Can you run the Opacus privacy engine with pytorch SequenceTaggingDataset?

I am trying to adapt a pytorch Named Entity Recognition model to incorporate differential privacy with the Opacus library. My model uses torchtext to build the

Change background color in Bootstrap 5 multi level dropdown menu

anyone tried to changed the background color in multi-dropdown menu in bootstrap 5? the original code is here https://bootstrap-menu.com/demos/multilevel.html I

Python function to iterate each unique column and transform using pyspark

I'm building the following global function in Pyspark to go through each column in my CSV that is in different formats and convert them all to one unique format

GET method gives success but PUT method gives 401 despite same credentials

The problem Overview When getting products using a GET method everything works when trying to update a product using PUT method I get 401 unauthorized I use sam

Having trouble using List.js to filter student profiles in JavaScript?

I am trying to filter student profiles via an input field. JavaScript grabs the data via an API and then using a return function I display the data on an HTML p

razor pages culture value is lost after redirecting to identity pages

I have created razor pages web application with multiple language support, it is reading the first part of URL and tries to show the content with the correspond

Fake client behaviour when mocking k8s for testing

I am using the fake clientset to perform some mocking in a k8s cli tool I am creating. Therefore I am creating a Job resource jobs := clientset.BatchV1().Jobs(m

Check if "Remove permissions if app is unused" is disabled for a particular app

How can I programmatically determine whether the "Remove permissions if app is unused" setting is enabled or disabled for a particular app?

How to delete multiple records from different classes in django?

It seems that whenever I run it and delete records I get server error (500) but it deletes the the data of class Bscs1_1 but for the rest of the classes it does